Use https://github.com/Manofsky/rslang-be as a backend. There is a description of the steps to get started.
-
You will need to deploy the backend yourself to demonstrate the working application.
-
During the implementation of an application, you may run the backend in any environment that is convenient for you, for example, a local machine:
- install and run MongoDB server
- install MongoDBCompass
- using MongoDBCompass create a learnwords database
- using MongoDBCompass import src\words\words.json (from backend) to learnwords database
- create a file
.env
in the root of the application - in the created file, specify the environment variables:
PORT=3001 MONGO_CONNECTION_STRING='mongodb://localhost:27017/learnwords' JWT_SECRET_KEY='secret key' JWT_REFRESH_SECRET_KEY='refresh secret key'
npm install
npm run start