SPFNA is a stock simulation investment game platform, which allows the user to simulate their stock portfolio and compete with friends who can make the most return on investment and will be the winner of the game. The SPFNA is created as a web-based platform. The rule of the game is that all users have to select the stock they think is going to outperform at the beginning of the year.
create .env file
NODE_ENV=
JWT_SECRET=
JWT_EXPIRE=
COOKIE_EXPIRE=
PORT =
MONGO_DBNAME =
MONGO_URI =
MONGO_USERNAME =
in client/src/config/config.json set
{
"API_URL": "http://localhost:5000/api",
"MAX_LENGTH": 250
}
Install node modules
$ npm i
Go to client folder and run npm i
$ cd client
$ npm i
To run server
npm start
To run server and client dev mode
npm run dev
- Stock simulation platform -> allows the user to design their own stock portfolio with the initial money starting at 200,000 USD. Login users can select any stock around the world including the US, Europe, Hong Kong, Shanghai, Canada, Australia, Thailand, Russia, Japan, London
- Leader Board -> allows any user to view all top return portfolio contestants. Any user can see top contestants holding.
- Portfolio P&L Distribution -> allows any user to view the portfolio profit and loss Distribution of contestants.
- IDEA sharing -> This feature allows login users to post their stock ideas to the public and Other login users can comment and share Ideas.
- Admin Announcement -> This feature allows Admin users to announce activity related to the competition.
- Register (QA)
- Login (QA)
- Logout
- display portfolio
- buy stock portfolio
- sell stock portfolio
- display leaderboard
- LeaderBoard
- P&L
- display cash report
- convert currency from one currency to other currency
- display all idea
- write idea
- save draft idea
- load draft idea
- publish idea
- comment on idea
- Admin write annoucement
- display all annoucement
- save draft annoucement
- load draft announcement
- publish announcement