This is a Next.js project bootstrapped with create-next-app
.
-
Make sure you have Node.js and npm installed.
-
Create a
.env.local
file in the root folder of the project, with the contents that we have shared with you privately. -
Install all the dependencies if not already done:
npm install
-
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
-
Make sure you have a recent version of Node.js and npm installed. To verify this you can run the commands
node --version
andnpm --version
, in your terminal, e.g.:$ node --version v14.18.0 $ npm --version 8.3.0
-
Clone the repository:
$ git clone [email protected]:tupuio/tupuapp.git
-
Enter in the just created folder, and install all the dependencies (among them, there will be
Next.js
):$ cd tupuapp tupuapp$ npm install
-
Create an
.env.local
file, mind the filename starting with a dot, open your favourite code editor, and fill the file with the contents that we have shared with you privately (probably throughhttps://cryptobin.co/
orhttps://yopass.se/
):tupuapp$ touch .env.local tupuapp$ code .
-
We use SendGrid in order to send notification emails. Create a free acount on https://sendgrid.com/go/email-smtp-service-signup-sales-1. Afterwards create a SendGrid API's key https://docs.sendgrid.com/ui/account-and-settings/api-keys#creating-an-api-key and add it to your
.env.local
file underSENDGRID_API_KEY
. -
Set a
SENDGRID_EMAIL_VERIFIED_SENDER
in your.env.local
with a SendGrid verified sender (for the same API key). https://docs.sendgrid.com/ui/sending-email/sender-verification -
In order to not spam real people with notifications while developing, set
DEV_EMAIL_RECIPIENT
in.env.local
with your email to receive all the notification emails to your inbox while developing. -
After filling in the file
.env.local
, if you use VSCode, you could open a new terminal (Terminal
->New Terminal
or simplyCtrl+Shift+`
), or use again the previous terminal, and start the the development server with:tupuapp$ npm run dev
-
Open http://localhost:3000 with your browser, and you should see the login page
-
Try to login with the user
test
and passwordapp
to test the connection to the server database (you need to be connected to the internet, and have correctly set the.env.local
file in the root of the Tupu application).