- Create a database in Postgres SQL
-
Go to server directory.
cd server
-
Create
.env
file using this commandcp .env.example .env
-
Complete the values of
.env
file with your setupNotes: For
AWARDS_DB_NAME
in .env file, fill it with your database name in Step 1# Database Credentials AWARDS_DB_HOST={your_database_host} AWARDS_DB_NAME={your_database_name} AWARDS_DB_USERNAME={your_database_username} AWARDS_DB_PASSWORD={your_database_password} AWARDS_DB_PORT={your_database_port} # JWT Secret AWARDS_JWT_SECRET_KEY={jwt_secret}
-
Install dependencies.
npm install
oryarn
-
Migrate the database.
npm run typeorm:run-migrations
oryarn typeorm:run-migrations
-
Start server.
npm run start:dev
oryarn start:dev
Notes: Server is running on PORT 5000, make sure there is no running application or service on PORT 5000
-
Go to client directory.
cd client
-
Install dependencies.
npm install
oryarn
-
Start client.
npm run dev
oryarn dev
-
Go to the url
http://localhost:5173/
in your browserNotes: By default, the url is
http://localhost:5173/
or you can copy the url on the terminal after you start the client -
Login with email
[email protected]